package com.chuyu.cy.entity.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author 周小白
 * @TableName user
 */
@TableName(value ="user")
@Data
public class User implements Serializable {

    @Schema(description = "用户id")
    private Integer id;

    @Schema(description = "用户名")
    private String nickName;

    @Schema(description = "学号")
    private String stuId;

    @Schema(description = "信誉分")
    private Integer creditScore;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "性别")
    private Integer gender;

    @Schema(description = "联系方式")
    private String contact;

    @Schema(description = "标签名")
    private String tags;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "是否删除")
    @TableLogic
    private Integer isDelete;

    private static final long serialVersionUID = 1L;
}